﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SmartWeigh.ViewModel
{
    public class MonitorViewModel : BaseViewModel
    {
        ItemViewModel _item01;
        ItemViewModel _item02;

        String _errorMessage01;
        String _errorMessage02;
        String _errorCode01;
        String _errorCode02;

        public ItemViewModel Item01
        {
            get { return _item01; }
            set
            {
                if (_item01 != value)
                {
                    _item01 = value;
                    RaisePropertyChanged("Item01");
                }
            }
        }
        public ItemViewModel Item02
        {
            get { return _item02; }
            set
            {
                if (_item02 != value)
                {
                    _item02 = value;
                    RaisePropertyChanged("Item02");
                }
            }
        }

        public String ErrorMessage01
        {
            get { return _errorMessage01; }
            set
            {
                if (_errorMessage01 != value)
                {
                    _errorMessage01 = value;
                    RaisePropertyChanged("ErrorMessage01");
                }
            }
        }
        public String ErrorCode01
        {
            get { return _errorCode01; }
            set
            {
                if (_errorCode01 != value)
                {
                    _errorCode01 = value;
                    RaisePropertyChanged("ErrorCode01");
                }
            }
        }
        public String ErrorMessage02
        {
            get { return _errorMessage02; }
            set
            {
                if (_errorMessage02 != value)
                {
                    _errorMessage02 = value;
                    RaisePropertyChanged("ErrorMessage02");
                }
            }
        }
        public String ErrorCode02
        {
            get { return _errorCode02; }
            set
            {
                if (_errorCode02 != value)
                {
                    _errorCode02 = value;
                    RaisePropertyChanged("ErrorCode02");
                }
            }
        }
    }
}
